home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / DNet / DSMTPclient.h < prev    next >
Text File  |  1996-07-05  |  755b  |  35 lines

  1. // DSMTP.h  
  2. // SMTP Mail sender
  3. // by D. Gilbert, May 1991
  4.  
  5.  
  6. #ifndef __DSMTP__
  7. #define __DSMTP__
  8.  
  9. #include "DTCP.h"
  10.  
  11.  
  12.  
  13. class DSMTP    : public DTCP {
  14. public:
  15.     DSMTP();
  16.     DSMTP( char *SMTPHostName);
  17.     virtual ~DSMTP();
  18.  
  19.     virtual void InitData();
  20.     virtual void ResetHost( char * SMTPHostName);
  21.     virtual void CheckReturnAddress( Boolean docheck = true);
  22.     virtual void SendMail( char * theTo, char * theFrom, char * theSubject, 
  23.                  char * theCCopy, char * theMessage);
  24.     virtual void SendMail( char * theTo, char * theFrom, char * theSubject, 
  25.                  char * theCCopy, char * theMessage, long pLines[], long nLines);
  26.  
  27. protected:
  28.     char*        fSMTPhostname;
  29.     char*        fMailerID;
  30.     Boolean    fCheckReturnAddress;
  31.     virtual Boolean WaitHandshake( char OkayCode);
  32. };
  33.             
  34. #endif
  35.